package cst.a806yf.zyfypt_806yf.Activity;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.webkit.WebView;

import cst.a806yf.zyfypt_806yf.R;

public class ViewTcaseActivity extends AppCompatActivity {
    private int resid;
    private WebView webView;
    private String BASEURL="http://amicool.neusoft.edu.cn/";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view_tcase);
        System.out.println("----查看案例详情");

        resid  = getIntent().getIntExtra("resid",1);

        webView = (WebView)findViewById(R.id.webview);
        webView.loadUrl(BASEURL+"article.php/show/index/id/"+resid);
    }


}
